package com.walle.concurrenttest.pattern.activeobject;

/**
 * @author zhangjiapeng
 * @Package com.walle.concurrenttest.pattern.activeobject
 * @Description: ${todo}
 * @date 2019/2/27 15:41
 */
public class DisplayStringRequest<T> extends MethodRequest<T>  {

    private final String s;


    public DisplayStringRequest(Servant servant, String s) {
        super(servant, null);
        this.s = s;
    }


    @Override
    public void execute() {
       servant.displayString(s);
    }
}
